<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1 {
            background-color: rgb(255, 255, 255);
        }

        .div1 ul {
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .div1 ul li {
            position: relative;
            width: 200px;
            height: 200px;



        }

        img {
            width: 100%;
            height: 100%;
            vertical-align: middle;
            object-fit: cover;
            opacity: 1;
        }

        .div3 {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            background-color: rgb(0, 0, 0, 0);
            transition: all 0.3s ease;
        }

        li:hover .div3 {
            background-color: rgba(0, 0, 0, 0.5);
        }

        .div3 img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: all 0.3s ease;
            /*多重属性可以单独设置时间*/
        }

        .div2 {
            overflow: hidden;
        }

        .div1 ul li:hover .div2 img {
            transform: scale(1.2, 1.2);
        }

        li:hover .div3 img {
            opacity: 0.5;

        }

        .div4 {
            position: absolute;
            width: 100%;
            height: 30%;
            background-color: rgb(255, 255, 255);
            text-align: center;
        }

        h2 {
            margin-bottom: -10px;
            transition: all 0.3s ease;
        }

        li:hover h2 {
            color: rgb(236, 251, 94);
        }
    </style>
</head>

<body>
    <div class="div1">
        <ul>
            <li>
                <div class="div2"><img src="https://www.loliapi.com/acg/pp/" alt="图片一"></div>
                <div class="div3"><img src="./image/bofang.png" alt="播放器"></div>
                <div class="div4">

                    <h2>图片一</h2>

                </div>
            </li>
            <li>
                <div class="div2"><img src="https://www.loliapi.com/acg/pp/" alt="图片二"></div>
                <div class="div3"><img src="./image/bofang.png" alt="播放器"></div>
                <div class="div4">

                    <h2>图片二</h2>

                </div>
            </li>
            <li>
                <div class="div2"><img src="https://www.loliapi.com/acg/pp//" alt="图片三"></div>
                <div class="div3"><img src="./image/bofang.png" alt="播放器"></div>
                <div class="div4">

                    <h2>图片三</h2>

                </div>
            </li>
            <li>
                <div class="div2"><img src="https://www.loliapi.com/acg/pp/" alt="图片四"></div>
                <div class="div3"><img src="./image/bofang.png" alt="播放器"></div>
                <div class="div4">

                    <h2>图片四</h2>

                </div>
            </li>
            <li>
                <div class="div2"><img src="https://www.loliapi.com/acg/pp/" alt="图片五"></div>
                <div class="div3"><img src="./image/bofang.png" alt="播放器"></div>
                <div class="div4">

                    <h2>图片五</h2>

                </div>
            </li>
        </ul>
    </div>
</body>

</html>